diff --git a/web/assets.js b/web/assets.js --- a/web/assets.js +++ b/web/assets.js @@ -2,13 +2,6 @@ export const assetCacheURLPrefix = 'https://dh9fld3hutpxf.cloudfront.net'; -// Background Illustration -export const backgroundIllustrationAsset = { - fileName: 'background-illustration.svg', - height: '100px', - width: '133px', -}; - // Notifications Modal Illustration: "Focused" export const focusedNotificationsIllustrationAsset = { fileName: 'all-notifs.svg', diff --git a/web/assets/background-illustration.react.js b/web/assets/background-illustration.react.js new file mode 100644 --- /dev/null +++ b/web/assets/background-illustration.react.js @@ -0,0 +1,44 @@ +// @flow + +import * as React from 'react'; + +function BackgroundIllustration(): React.Node { + return ( + + + + + + + + ); +} + +export default BackgroundIllustration; diff --git a/web/chat/chat-thread-list.react.js b/web/chat/chat-thread-list.react.js --- a/web/chat/chat-thread-list.react.js +++ b/web/chat/chat-thread-list.react.js @@ -5,7 +5,7 @@ import { emptyItemText } from 'lib/shared/thread-utils'; -import { assetCacheURLPrefix, backgroundIllustrationAsset } from '../assets'; +import BackgroundIllustration from '../assets/background-illustration.react'; import Button from '../components/button.react'; import Search from '../components/search.react'; import { useSelector } from '../redux/redux-utils'; @@ -67,11 +67,7 @@ function EmptyItem() { return (
- +
{emptyItemText}
);